package generic.gui.util;

import java.awt.BorderLayout;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

@SuppressWarnings("serial")
public class JPanelForm extends JPanel {

	public JPanelForm() {
		setFont(new Font("Calibri", Font.PLAIN, 14));
	}

	public JPanelForm(BorderLayout borderLayout) {
		super(borderLayout);
	}
	
	public TitledBorder getDefaultBorder(String title) {
		setBorder(new TitledBorder(BorderFactory.createEtchedBorder(), title, 1, 0, new Font("Calibri", Font.PLAIN, 15)));
		return (TitledBorder) getBorder();
	}
}
